<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 <!DOCTYPE html>
<html>

<head>
	<base href="/">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    

    <title>新站关键字扣费记录</title>
    <meta name="keywords" content="新站关键字扣费记录">
    <meta name="description" content="新站关键字扣费记录">

    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="static/templet/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="static/templet/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="static/templet/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="static/templet/css/animate.min.css" rel="stylesheet">
    <link href="static/templet/css/style.min862f.css?v=4.1.0" rel="stylesheet">
<style>
.clearfix:after{
	content:'';
	display:block;
	clear:both;
}
.goBack{
	float:left;
	width:50px;
	margin-top:20px;
}
.pag{
width:90%;
	float:right;
}
</style>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
    <form action="bill/newStationKeyWordDeduc" method="post" id="billForm">
        <div class="row">  
        
        <div class="col-sm-12">
        		<table class="table table-hover">
        			<tr>
        				<td>
							 <input type="text" value="${param.userName}" name="userName" placeholder="请输入用户名" class="form-control">
        				</td>
        				<td>
							 <input type="text" value="${param.keyWord}" name="keyWord" placeholder="请输入关键字" class="form-control">
        				</td>
        				<td>
							 <input type="text" value="${param.domain}" name="domain" placeholder="请输入域名" class="form-control">
        				</td>
        				<td style="width:20%;">
        					<select class="form-control" name="engine_code" data-placeholder="搜索引擎" style="vertical-align:top;width: 120px;">
        					<option value="">搜索引擎</option>
        					<c:forEach var="co" varStatus="i" items="${engine}">
        					       <option value="${co.code }" <c:if test="${co.code == param.engine_code}">selected</c:if>>${co.name }</option>
                                </c:forEach>
					        </select>
        				</td>
        				<td>
        					<input placeholder="开始日期" class="form-control layer-date" readonly="readonly" id="startTime" name="startTime" value="${param.startTime }">
						    <span>-</span>
                            <input placeholder="结束日期" class="form-control layer-date" readonly="readonly" id="endTime" name="endTime" value="${param.endTime }">
        				</td>
        				<td >
        					<button type="button" class="btn btn-primary" onclick="searchs();">检索</button>
        				</td>
        			</tr>
        		</table>
			</div>      
            <div class="col-sm-12">
                <div class="ibox">
                    <div class="ibox-content">
                        <table class="table table-hover">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>用户名</th>
                                    <th>关键字</th>
                                    <th>搜索类型</th>
                                    <th>域名</th>
                                    <th>最新排名</th>
                                    <th>交易时间</th>
                                    <th>金额 (元)</th>
                                </tr>
                            </thead>
                            <tbody>
							<c:forEach items="${page.list}" var="ba" varStatus="vs">
                            	<tr>
                                    <td>${ba.id}</td>
									<td>${ba.user_name }</td>
									<td>${ba.name }</td>
									<td>${ba.engineName }</td>
									<td>${ba.domain }</td>
									<td>
									<c:if test="${ba.new_ranking == '-1' }">
											未入排名
									</c:if>
									<c:if test="${ba.new_ranking != '-1' }">
										${ba.new_ranking}
									</c:if>
									</td>
									<td>${ba.create_time }</td>
									<td>${ba.amount }</td>
                                </tr>
                            </c:forEach>
                            </tbody>
                        </table>
                        
                        <jsp:include page="/WEB-INF/jsp/page.jsp">
                        	<jsp:param value="billForm" name="form"/>
                        </jsp:include>
                    </div>
                </div>
            </div>
        </div>
        </form>
    </div>
    <script src="static/templet/js/jquery.min.js?v=2.1.4"></script>
    <script src="static/templet/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="static/templet/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="static/templet/js/plugins/layer/layer.min.js"></script>
    <script src="static/templet/js/iframe.min.js"></script>
    <script src="static/templet/js/plugins/layer/laydate/laydate.js"></script>
    <script type="text/javascript">
    function searchs() {
    	$("#billForm").submit();
    }
    var start={elem:"#startTime",format:"YYYY-MM-DD hh:mm:ss",min:"1970-01-11 00:00:00",max:"2099-06-16 23:59:59",istime:true,istoday:false,choose:function(datas){end.min=datas;end.start=datas}};var end={elem:"#endTime",format:"YYYY-MM-DD hh:mm:ss",min:"1970-01-11 00:00:00",max:"2099-06-16 23:59:59",istime:true,istoday:false,choose:function(datas){start.max=datas}};laydate(start);laydate(end);
    </script>

</body>

</html>